<%-- 
    Document   : apresentacao, slide 11
    Created on : Abr 4, 2009
    Author     : Julio Toss
--%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="jsf" uri="http://www.sun.com/webui/webuijsf" %>
<%@ taglib prefix="i" uri="http://www.inf.ufrgs.br/prav/interop" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<f:view>
<i:DOCTYPE/>
<!--
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

useagente:
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 Nokia6120c/3.83; Profile/MIDP-2.0 Configuration/CLDC-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="pt-br" xml:lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Viva Saudável - Cácluo do IMC</title>
<i:link rel="stylesheet" href="../vivasaudavel.css" type="text/css"/>

<script type="text/javascript" language="JavaScript">

function calculaIMC(){
	peso = document.form1.peso.value;
	altura = document.form1.altura.value;
	
	imc = peso / (altura * altura) ;
	
	document.form1.imc.value = imc;
}

</script>

</head>

<body>

<!--  ======================================== div do titulo  ============================================== -->
<div id="titulo" class="titulo">
<div id="left" class="btnL" ><i:img src="../img/ant.gif" />&nbsp  <i:a href="imc2.jsp" styleClass="mylink" >Sobre o IMC</i:a> </div>
<div id="right" class="btnR" ><i:a href="../../index.jsp" styleClass="mylink" > Índice </i:a> <i:img src="../img/prox.gif" /></div>
</div>

<!--  ======================================== div do menu  ============================================= -->    

<!--  =================================== div do conteudo  =============================================== -->

<div id="conteudo" class="conteudo" > 		
	
	<form name="form1" method="get" action="resultado.jsp">
	  Peso (kg):  <input type="text" name="peso" id="peso"/><br />
	  Altura (metros): <input type="text" name="altura" /><br />
	  <input type="submit" value="Enviar" onclick="calculaIMC()"/>
	  <input name="imc" type="hidden" />
	</form>

</div>	

</body>
</html>
</f:view>
